package com.student.client.mapper;

import com.student.client.entity.Award;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AwardMapper {
    //查询学生获奖信息
    @Select("select * from award_info")
    public List<Award> findAllAward();
    //添加获奖记录数据
    @Insert("INSERT INTO award_info(award_id,award_name,award_count)" +
            "values(#{award_id},#{award_name},#{award_count})" )
    public int addAttendance(Award award);

}
